<script type="text/javascript">

function changeType( value ) {
    console.log("changeType("+ value +")");
    var r = $.ajax({
      type: 'GET',
      url: '<?php echo url_for('resources/type')?>' + '/id/' + value,
      async: false
    }).responseText;

    return r;
  }
</script>

<?php include_partial('form', array('form' => $form)) ?>
